import 'virtual:svg-icons-register'
import 'ant-design-vue/dist/reset.css'
import '@/styles/index.scss'

import App from './App.vue'
import { setupStore } from '@/store'
import { registerGlobComp } from '@/components/registerGlobComp.js'
import { router, setupRouter } from '@/router'
import { setupRouterGuard } from '@/router/guard.js'
import { setupGlobDirectives } from '@/directives/index.js'

function bootstrap() {
  const app = createApp(App)

  setupStore(app)

  registerGlobComp(app)

  setupRouter(app)

  setupRouterGuard(router)

  setupGlobDirectives(app)

  app.mount('#app')
}

bootstrap()
